package com.recruit.wechat.bean;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author LF
 * @since 2020-08-25
 */
@TableName("wechat_enclosure")
@ApiModel(value="WechatEnclosure对象", description="")
public class WechatEnclosure extends Model<WechatEnclosure> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "简历附件ID")
    @TableId(value = "enclosure_id", type = IdType.AUTO)
    private Integer enclosureId;

    @ApiModelProperty(value = "简历附件地址")
    @TableField("enclosure_url")
    private String enclosureUrl;

    @ApiModelProperty(value = "用户Id")
    @TableField("user_id")
    private Integer userId;

    public Integer getEnclosureId() {
        return enclosureId;
    }

    public void setEnclosureId(Integer enclosureId) {
        this.enclosureId = enclosureId;
    }
    public String getEnclosureUrl() {
        return enclosureUrl;
    }

    public void setEnclosureUrl(String enclosureUrl) {
        this.enclosureUrl = enclosureUrl;
    }
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    protected Serializable pkVal() {
        return this.enclosureId;
    }

    @Override
    public String toString() {
        return "WechatEnclosure{" +
            "enclosureId=" + enclosureId +
            ", enclosureUrl=" + enclosureUrl +
            ", userId=" + userId +
        "}";
    }
}
